package com.lagou.edu.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lagou.edu.common.JedisClusterConfig;
import com.lagou.edu.entity.Position;
import com.lagou.edu.mapper.PositionMapper;
import com.lagou.edu.service.IPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 陶肖寅
 * @version V1.0
 * <p>
 * date: 2020/9/6 下午3:51
 * email:fromlx@126.com
 * @Copyright: 2020-2021 城云科技(中国)有限公司
 * </p>
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {
    @Override
    public List<Position> getPosition() {
        Wrapper wrapper = new QueryWrapper<Position>();
        List<Position> positions = baseMapper.selectList(wrapper);
        return positions;
    }
}
